/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frm_Main.java
 *
 * Created on Aug 2, 2011, 5:46:49 PM
 */

package gui;

/**
 *
 * @author HP
 */
public class frm_Main extends javax.swing.JFrame {

    /** Creates new form frm_Main */
    public frm_Main() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDesktopPane1 = new javax.swing.JDesktopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuQuanLySach = new javax.swing.JMenuItem();
        jMenuHienThiSach = new javax.swing.JMenuItem();
        jMenuTimKiemSach = new javax.swing.JMenuItem();
        jMenuLapHoaDonBanSach = new javax.swing.JMenuItem();
        jMenuNhapPhieuNhapSach = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("MainMDI");

        jDesktopPane1.setBackground(new java.awt.Color(102, 102, 255));
        getContentPane().add(jDesktopPane1, java.awt.BorderLayout.CENTER);

        jMenu1.setText("Chuc Nang");

        jMenuQuanLySach.setText("1  - Quan Ly Sach");
        jMenuQuanLySach.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuQuanLySachActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuQuanLySach);

        jMenuHienThiSach.setText("2 -Hien Thi Sach Theo The Loai");
        jMenuHienThiSach.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuHienThiSachActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuHienThiSach);

        jMenuTimKiemSach.setText("3 - Tim Kiem Sach");
        jMenuTimKiemSach.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuTimKiemSachActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuTimKiemSach);

        jMenuLapHoaDonBanSach.setText("4 - Lap Hoa Don Ban Sach");
        jMenuLapHoaDonBanSach.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuLapHoaDonBanSachActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuLapHoaDonBanSach);

        jMenuNhapPhieuNhapSach.setLabel("5 - Lap Phieu Nhap Sach");
        jMenuNhapPhieuNhapSach.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuNhapPhieuNhapSachActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuNhapPhieuNhapSach);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuQuanLySachActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuQuanLySachActionPerformed
        // TODO add your handling code here:
        frm_JInterFrameQuanLySach jmainQuanLySach=new frm_JInterFrameQuanLySach();
        this.jDesktopPane1.add(jmainQuanLySach);
        jmainQuanLySach.setVisible(true);
    }//GEN-LAST:event_jMenuQuanLySachActionPerformed

    private void jMenuHienThiSachActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuHienThiSachActionPerformed
        // TODO add your handling code here:
         frm_JInterFrarmeHienThiSachTheoTheLoai frm=new frm_JInterFrarmeHienThiSachTheoTheLoai();
        this.jDesktopPane1.add(frm);
        frm.setVisible(true);
    }//GEN-LAST:event_jMenuHienThiSachActionPerformed

    private void jMenuTimKiemSachActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuTimKiemSachActionPerformed
        // TODO add your handling code here:
        frm_JInterFrameTraCuuSach frm=new frm_JInterFrameTraCuuSach();
          this.jDesktopPane1.add(frm);
        frm.setVisible(true);
    }//GEN-LAST:event_jMenuTimKiemSachActionPerformed

    private void jMenuLapHoaDonBanSachActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuLapHoaDonBanSachActionPerformed
        // TODO add your handling code here:
        frm_JInternalFrameLapHoaDonBanSach frm=new frm_JInternalFrameLapHoaDonBanSach();
          this.jDesktopPane1.add(frm);
        frm.setVisible(true);
    }//GEN-LAST:event_jMenuLapHoaDonBanSachActionPerformed

    private void jMenuNhapPhieuNhapSachActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuNhapPhieuNhapSachActionPerformed
        // TODO add your handling code here:
        frm_JInternalFrameLapPhieuNhapSach frm=new frm_JInternalFrameLapPhieuNhapSach();
          this.jDesktopPane1.add(frm);
        frm.setVisible(true);
    }//GEN-LAST:event_jMenuNhapPhieuNhapSachActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new frm_Main().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuHienThiSach;
    private javax.swing.JMenuItem jMenuLapHoaDonBanSach;
    private javax.swing.JMenuItem jMenuNhapPhieuNhapSach;
    private javax.swing.JMenuItem jMenuQuanLySach;
    private javax.swing.JMenuItem jMenuTimKiemSach;
    // End of variables declaration//GEN-END:variables

}
